<?php 
/* Template Name: Galeria de Fotos */
$post = $wp_query->post;
get_header();
?>

<style type="text/css">
.thumbnail-galeria-principal{width:150px;height:112px;border:1px solid green;}
</style>

<div class="cont-miolo">	
	<div class="vertical_space_20"></div>
	<h1 class="font-azul"><?php echo $post->post_title;?></h1>
	<div class="vertical_space_20"></div>

	<?php 
	if ( get_post_meta($post->ID, 'avpt_page_subtitulo', true) ) { ?>
		<div style="width: 620px; text-align:justify;">
			<p><?php echo get_post_meta($post->ID, 'avpt_page_subtitulo', true); ?></p>
		</div>
		<div class="vertical_space_20"></div>
	<?php	
	}	
	if (have_posts()) : 
		while (have_posts()) : the_post();
			the_content(); 
		endwhile; 
	endif;	
	
//wp-content/ngg_styles

//[ngg_images gallery_ids="1,2,3,4,5,6" display_type="photocrati-nextgen_basic_thumbnails" slideshow_link_text=" "]
	//[ngg_images album_ids="1,2,3,4,5,6,7,8,9,10" display_type="photocrati-nextgen_basic_compact_album" show_slideshow_link="0"]
	$url_atual = url_atual ();
	if ($url_atual  == "http://localhost/avptdev/minhas-galerias-de-fotos/") {
		//Do nothing
	} else { ?>
		<a href="http://localhost/avptdev/minhas-galerias-de-fotos">Ver todas as galerias</a>

	<?php
	}

	?>
	


	<!--
	<div class="vertical_space_20"></div>

	<div>
		<div class="thumbnail-galeria-principal" style="float:left;"></div>
		<div class="thumbnail-galeria-principal" style="float:left;margin-left:10px;"></div>
		<div class="thumbnail-galeria-principal" style="float:left;margin-left:10px;;"></div>
		<div class="thumbnail-galeria-principal" style="float:right;"></div>
	</div>
	<div class="clr"></div>
	<div class="vertical_space_10"></div>
	<div>
		<div class="thumbnail-galeria-principal" style="float:left;"></div>
		<div class="thumbnail-galeria-principal" style="float:left;margin-left:10px;"></div>
		<div class="thumbnail-galeria-principal" style="float:left;margin-left:10px;;"></div>
		<div class="thumbnail-galeria-principal" style="float:right;"></div>
	</div>
	-->

	
</div><!-- Fim div cont-miolo -->

<div id="direita">
	<?php
	if ( get_post_meta($post->ID, 'avpt_page_subtitulo', true) == 'teste' ) {
		dynamic_sidebar( 'Lateral Direita Teste' );
	} 
	if ( get_post_meta($post->ID, 'avpt_page_subtitulo', true) == 'teste' ) {
		dynamic_sidebar( 'Lateral Direita Teste' );		
	} 
	if ( get_post_meta($post->ID, 'avpt_page_subtitulo', true) == 'teste' ) {
		dynamic_sidebar( 'Lateral Direita Teste' );
	} 
	if ( get_post_meta($post->ID, 'avpt_page_subtitulo', true) == 'teste' ) {
		dynamic_sidebar( 'Lateral Direita Teste' );
	} 
	if ( get_post_meta($post->ID, 'avpt_page_subtitulo', true) == 'teste' ) {
		dynamic_sidebar( 'Lateral Direita Teste' );		
	} else {
		dynamic_sidebar( 'Lateral Direita Home' );
	}
	?>
	<div class="vertical_space_20"></div> 
</div><!-- Fim div coluna_direita -->


<div class="cont-direitos" style="border-top: 2px #efefef solid;">
	<?php direito_barra_page ("Página de detalhes do ", get_the_title()); ?>
</div>

</div><!-- Fim div corpo -->
<div class="vertical_space_20"></div>

<div class="cont-miolo-pub"><?php add_google_pub_bloco_2x468x60 (); ?></div>
<div class="vertical_space_20"></div>

</div><!-- Fim div tudo -->

<?php get_footer(); ?>

</body>

</html>